var pageii = null;
var grid = null;
$(function() {
	grid = lyGrid({
		pagId : 'paging',
		l_column : [ {
			colkey : "id",
			name : "id",
			hide : true
		}, {
			colkey : "ofcode",
			name : "物料名称",
		}, {
			colkey : "item_no",
			name : "物料编码",
		}, {
			colkey : "use_number",
			name : "使用数量",
		}, {
			colkey : "balance_up",
			name : "结存上限"
		}, {
			colkey : "balance_down",
			name : "结存下限"
		}
		],
		jsonUrl : rootPath + '/order/getOrderByPage.shtml',
		dymCol:true,
		checkbox : false,
		checkValue: "ofid",
		records: "list",
		totalPages: "pages",
		totalRecords: "total",
		pagecode: '10',
		pageNow : 'pageNum'
	});
	$("#search").click("click", function() {// 绑定查询按扭
		var searchParams = $("#searchForm").serializeJson();// 初始化传参数
		grid.setOptions({
			data : searchParams
		});
	});
});


